package io.finer.erp.jeecg.stock.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 库存移动
 * </p>
 *
 * @author yaoyifan
 * @since 2021-05-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="StockMove对象", description="库存移动")
public class StockMove implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "物料")
    private String materialId;

    @ApiModelProperty(value = "数量")
    private BigDecimal qty;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

//    @ApiModelProperty(value = "币种")
//    private String currencyId;

    @ApiModelProperty(value = "创建日期")
    private Date createDate;

    @ApiModelProperty(value = "处理日期")
    private Date processDate;

    @ApiModelProperty(value = "来源库位")
    private String sourceWarehouseId;

    @ApiModelProperty(value = "目的库位")
    private String destWarehouseId;

    @ApiModelProperty(value = "事物处理类型")
    private String transactionType;

    @ApiModelProperty(value = "部门")
    private String sysOrgCode;

    @ApiModelProperty(value = "处理人")
    private String processor;

    @ApiModelProperty(value = "源单据")
    private String origin;

    @ApiModelProperty(value = "参考")
    private String ref;

    @ApiModelProperty(value = "参考ID")
    private String refId;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "供应商")
    private String supplierId;

    @ApiModelProperty(value = "客户")
    private String customerId;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "版本")
    private Integer version;


}
